// pages/irrigation/irrigationDetail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    irrigationDetail:{},
    formAttributes:[
      {field:'eqNo',label:'设备编号',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: true, message: '不能为空'}]},
      // {field:'eqName',label:'设备名称',component:'input',readonly:true,required:true,isShowLabel:true,border:true,clean:true,rules: [{required: true, message: '不能为空'}]},
      {field:'userOrder',label:'订单号',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: true, message: '不能为空'}],type:'number'},
      {field:'icNo',label:'ic卡号',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: true, message: '不能为空'}]},
      {field:'curMoney',label:'当前余额',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: false, message: '不能为空'}]},
      {field:'curWater',label:'取水量',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: false, message: '不能为空'}]},
      {field:'curEle',label:'用电量',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: false, message: '不能为空'}]},
      {field:'sumWater',label:'累计用水',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: false, message: '不能为空'}]},
      {field:'sumEle',label:'累计用电',component:'input',readonly:true,required:false,isShowLabel:true,border:true,clean:true,rules: [{required: false, message: '不能为空'}]},
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    wx.setNavigationBarTitle({
      title: "灌溉单据详情",
    })
    this.setData({irrigationDetail:wx.getStorageSync('irrigationItem')})
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})